package com.skrabacz.kinetic.buisness.check;

import javax.management.InvalidAttributeValueException;

public class ParamsChecker implements Checker {

	@Override
	public void checkParams(Object object) {
		if (object == null) {
			throw new NullPointerException();
		}
	}

	@Override
	public void checkNumberParams(int[] cor) throws InvalidAttributeValueException {
		if (cor.length < 2) {
			throw new InvalidAttributeValueException();
		}
	}
}
